package org.im.service.message.bean;

public enum ActionType {

	//普通的字符串消息
	NEW_USER(1),
	
	//需要模板解析的字符串消息
	USER_LEAVE(2),
	
	SEND_MSG(3);

	private int type;

	private ActionType(int type) {
		this.type = type;
	}

	public int getType() {
		return type;
	}
	
	public static ActionType valueOf(int type) {
		switch (type) {
			case 1 : return NEW_USER;
			case 2 : return USER_LEAVE;
			default : return NEW_USER;
		}
	}
}
